using PBMessage;
using UnityEngine;
using System.Collections;

public class SC_GameHallTick_Handler :IPBHandler
{ 
    public void Exec(object packet) 
    {
        SC_GameHallTick PacketData = (SC_GameHallTick)packet;
        CS_GameHallTick cstick = new CS_GameHallTick();
        cstick.ClientTime = System.DateTime.Now.Ticks;
        Game.Net.SendPacket<CS_GameHallTick>(cstick, PBMessageID.CS_GameHallTick);

        Debug.Log("Tick By Server");
        GameHallModel model = Game.Model.Get<GameHallModel>();
        if (model != null)
        {
            model.OnLineNumber = PacketData.OnLineNumber;
        }
    }
}
